//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['St. Vincent','Majestic Ventura Theatre','Ventura, CA','Wednesday','5/22/2024','8:00 PM','6348247','St--Vincent-5-22-2024'],['BottleRock Festival: Pearl Jam, Ed Sheeran, Stevie Nicks & Mana - 3 Day Pass','Napa Valley Expo','Napa, CA','Friday','5/24/2024','TBD','5736140','BottleRock-Festival--Pearl-Jam--Ed-Sheeran--Stevie-Nicks---Mana---3-Day-Pass-5-24-2024'],['BottleRock Festival: Stevie Nicks, Megan Thee Stallion, St. Vincent & Nelly - Friday','Napa Valley Expo','Napa, CA','Friday','5/24/2024','11:30 AM','5736141','BottleRock-Festival--Stevie-Nicks--Megan-Thee-Stallion--St--Vincent---Nelly---Friday-5-24-2024'],['St. Vincent','The Masonic - San Francisco','San Francisco, CA','Saturday','5/25/2024','8:00 PM','6296158','St--Vincent-5-25-2024'],['St. Vincent','JaM Cellars Ballroom','Napa, CA','Sunday','5/26/2024','10:00 PM','6295433','St--Vincent-5-26-2024'],['St. Vincent & Spoon','Hayden Homes Amphitheater','Bend, OR','Thursday','8/8/2024','6:30 PM','6348248','St--Vincent---Spoon-8-8-2024'],['THING Festival: St. Vincent, Black Pumas & Toro y Moi - 3 Day Pass','Remlinger Farms - WA','Carnation, WA','Friday','8/9/2024','TBD','6317641','THING-Festival--St--Vincent--Black-Pumas---Toro-y-Moi---3-Day-Pass-8-9-2024'],['THING Festival: St. Vincent, Spoon & Shakey Graves - Friday','Remlinger Farms - WA','Carnation, WA','Friday','8/9/2024','12:00 PM','6317642','THING-Festival--St--Vincent--Spoon---Shakey-Graves---Friday-8-9-2024'],['St. Vincent','Orpheum Theatre - Vancouver','Vancouver, Canada','Sunday','8/11/2024','8:00 PM','6348260','St--Vincent-8-11-2024'],['St. Vincent','Knitting Factory Concert House - Boise','Boise, ID','Tuesday','8/13/2024','8:00 PM','6348250','St--Vincent-8-13-2024'],['St. Vincent','Ogden Amphitheater','Ogden, UT','Wednesday','8/14/2024','6:00 PM','6349364','St--Vincent-8-14-2024'],['St. Vincent','Greek Theatre - Los Angeles CA','Los Angeles, CA','Friday','8/16/2024','8:00 PM','6348251','St--Vincent-8-16-2024'],['St. Vincent','MGM Music Hall at Fenway Park','Boston, MA','Thursday','9/5/2024','8:00 PM','6348253','St--Vincent-9-5-2024'],['St. Vincent','The Met - Philadelphia','Philadelphia, PA','Friday','9/6/2024','8:00 PM','6348255','St--Vincent-9-6-2024'],['St. Vincent','Brooklyn Paramount','Brooklyn, NY','Tuesday','9/10/2024','7:00 PM','6348256','St--Vincent-9-10-2024'],['St. Vincent','Brooklyn Paramount','Brooklyn, NY','Wednesday','9/11/2024','7:00 PM','6348257','St--Vincent-9-11-2024'],['St. Vincent','The Anthem - D.C.','Washington, DC','Friday','9/13/2024','8:00 PM','6348258','St--Vincent-9-13-2024'],['St. Vincent','Massey Hall','Toronto, Canada','Saturday','9/14/2024','8:00 PM','6348261','St--Vincent-9-14-2024'],['St. Vincent','Michigan Theater - Ann Arbor','Ann Arbor, MI','Monday','9/16/2024','8:00 PM','6348259','St--Vincent-9-16-2024'],['St. Vincent','The Palace Theatre - St. Paul','Saint Paul, MN','Friday','9/20/2024','8:00 PM','6348265','St--Vincent-9-20-2024']],'St. Vincent','http://www.ticketnetwork.com/ticket/St.-Vincent-events.aspx');